package com.stylefeng.guns.rest.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ruiyifeng123
 * @since 2019-01-09
 */
@TableName("wz_user_activity")
public class WzUserActivity extends Model<WzUserActivity> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "user_map_activity_id", type = IdType.AUTO)
    private Long userMapActivityId;
    /**
     * 活动id
     */
    @TableField("map_activity_id")
    private Long mapActivityId;
    /**
     * 用户编号
     */
    @TableField("user_code")
    private Long userCode;
    /**
     * 状态：1-进行中；2-已结束；3-已过期
     */
    private Integer status;
    /**
     * 结束时间
     */
    @TableField("end_time")
    private Date endTime;
    /**
     * 分享人数
     */
    @TableField("share_number")
    private Integer shareNumber;
    /**
     * 领钱:1-限每人每天可领一次；2-限每人只可领一次；
     */
    private Integer usetype;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;


    public Long getUserMapActivityId() {
        return userMapActivityId;
    }

    public void setUserMapActivityId(Long userMapActivityId) {
        this.userMapActivityId = userMapActivityId;
    }

    public Long getMapActivityId() {
        return mapActivityId;
    }

    public void setMapActivityId(Long mapActivityId) {
        this.mapActivityId = mapActivityId;
    }

    public Long getUserCode() {
        return userCode;
    }

    public void setUserCode(Long userCode) {
        this.userCode = userCode;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getShareNumber() {
        return shareNumber;
    }

    public void setShareNumber(Integer shareNumber) {
        this.shareNumber = shareNumber;
    }

    public Integer getUsetype() {
        return usetype;
    }

    public void setUsetype(Integer usetype) {
        this.usetype = usetype;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.userMapActivityId;
    }

    @Override
    public String toString() {
        return "WzUserActivity{" +
        "userMapActivityId=" + userMapActivityId +
        ", mapActivityId=" + mapActivityId +
        ", userCode=" + userCode +
        ", status=" + status +
        ", endTime=" + endTime +
        ", shareNumber=" + shareNumber +
        ", usetype=" + usetype +
        ", createTime=" + createTime +
        "}";
    }
}
